/**
 * 
 */
package cen5501c.common;

/**
 * Thrown when ErrorCmd received from the server
 * @author Jiangyan Xu
 *
 */
public class P2PException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	public P2PException() {
	}

	public P2PException(ErrorCmd error) {
		this(error.getMessage());
	}

	/**
	 * @param arg0
	 */
	public P2PException(String arg0) {
		super(arg0);
	}

	/**
	 * @param arg0
	 */
	public P2PException(Throwable arg0) {
		super(arg0);
	}

	/**
	 * @param arg0
	 * @param arg1
	 */
	public P2PException(String arg0, Throwable arg1) {
		super(arg0, arg1);
	}

}
